

import java.text.DateFormat;
import java.util.Date;
import java.util.Locale;

/**
 * author:wzq
 * date:16-7-12
 * project:i18n
 * description: TODO
 */
public class DateAndTime {
    public static void main(String[] args) {
        // 选择一个 locale
        //  Locale loc = Locale.CHINA;
        // Locale loc = new Locale("jp");
        Locale loc = new Locale("fr");

        // 选择一个 date format
        // DateFormat fmt = DateFormat.getDateInstance(DateFormat.DEFAULT, loc);
        // DateFormat fmt = DateFormat.getDateInstance(DateFormat.FULL, loc);
        DateFormat fmt = DateFormat.getDateInstance(DateFormat.LONG, loc);


        System.out.println(fmt.format(new Date()));
    }

}
